<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="/js/jquery-2.1.1.min.js"></script>

</head>
<body>
<div th:insert="/commen/commen.html"></div>
<form id="addform">
    账号:<input type="text" name="pname" id="text"><br>
    职位:
    <th:block th:each="l : ${list}">
        <input type="checkbox"  name="roleId" value="1" th:value="${l.roleId}" >[[${l.roleName}]]
    </th:block>
</form>
</body>
</html>